package w4;

public class DogTest3 {
	static void f1(int n) {
		System.out.println("n = " + n);
		n = 20;
		System.out.println("n = " + n);
	}
	
	static void f2(Dog d) {
		d.size = 20;
	}
	
	public static void main(String[] args) {
		int a = 10;
		f1(a);
		System.out.println("a = " + a);
		
		Dog d1 = new Dog();
		d1.size = 10;
		f2(d1);
		// d = d1;
		System.out.println("d1.size = " + d1.size);
	}

}
